//package com.da.alipay.util;
//
//import com.alipay.api.AlipayClient;
//import com.alipay.api.DefaultAlipayClient;
//import com.da.alipay.bean.AlipayProperties;
//
///**
// * @author JokerDa.
// * @date 2021/1/26 16:05
// * Description:
// */
//
//public class PayClientUtil {
//    public static AlipayClient getDefaultClient() {
//        // 1、获得初始化的AlipayClient
//        String serverUrl = AlipayProperties.getGatewayUrl();
//        String appId = AlipayProperties.getAppId();
//        String privateKey = AlipayProperties.getPrivateKey();
//        String format = "json";
//        String charset = AlipayProperties.getCharset();
//        String alipayPublicKey = AlipayProperties.getPublicKey();
//        String signType = AlipayProperties.getSignType();
//        return new DefaultAlipayClient(serverUrl, appId, privateKey, format, charset,
//            alipayPublicKey, signType);
//    }
//}
